import { _ as _sfc_main$1 } from "./chunk-PdSlider.vue-NMiJrJ6b.js";
import { defineComponent, ref, toRef, computed, watch, onMounted, createElementBlock, openBlock, createElementVNode, createBlock, createCommentVNode } from "vue";
import { T as TryOn } from "./chunk-try-on-C5GAuqKK.js";
import { c as config } from "./chunk-config-Diy8lssK.js";
import _0x14279c from "lodash/assignWith";
const _0x35d4e7 = _0x58cd;
(function(_0x8c0373, _0x17da63) {
  const _0x5040c1 = { _0x4c2acb: 316, _0x144e69: 294, _0x56d273: 345, _0x525da5: 329, _0x5933c5: 311, _0x1e4663: 288, _0x566f89: 301, _0xeb5376: 343 }, _0x196fba = _0x58cd, _0x33b113 = _0x8c0373();
  while (!![]) {
    try {
      const _0x76ac7b = -parseInt(_0x196fba(304)) / 1 * (parseInt(_0x196fba(_0x5040c1._0x4c2acb)) / 2) + parseInt(_0x196fba(323)) / 3 * (parseInt(_0x196fba(_0x5040c1._0x144e69)) / 4) + parseInt(_0x196fba(_0x5040c1._0x56d273)) / 5 * (parseInt(_0x196fba(_0x5040c1._0x525da5)) / 6) + -parseInt(_0x196fba(_0x5040c1._0x5933c5)) / 7 + -parseInt(_0x196fba(_0x5040c1._0x1e4663)) / 8 + parseInt(_0x196fba(_0x5040c1._0x566f89)) / 9 * (parseInt(_0x196fba(317)) / 10) + parseInt(_0x196fba(_0x5040c1._0xeb5376)) / 11;
      if (_0x76ac7b === _0x17da63) break;
      else _0x33b113["push"](_0x33b113["shift"]());
    } catch (_0x3c43fa) {
      _0x33b113["push"](_0x33b113["shift"]());
    }
  }
})(_0xd407, 189810);
const _0x471f1b = /* @__PURE__ */ function() {
  let _0x1bd1f6 = !![];
  return function(_0x1d0792, _0x44c1bd) {
    const _0x322b38 = _0x1bd1f6 ? function() {
      const _0x31b002 = _0x58cd;
      if (_0x44c1bd) {
        const _0x3958c1 = _0x44c1bd[_0x31b002(292)](_0x1d0792, arguments);
        return _0x44c1bd = null, _0x3958c1;
      }
    } : function() {
    };
    return _0x1bd1f6 = ![], _0x322b38;
  };
}(), _0xa4af47 = _0x471f1b(void 0, function() {
  const _0x42be15 = { _0x4db5fc: 293, _0x2aeb2: 331, _0x2d4c05: 289, _0x757ffa: 344, _0x263079: 341, _0x5e66a9: 296, _0x3d356d: 321, _0x9104a8: 297, _0x5c44ee: 332 }, _0xd61b81 = { _0x3b52d2: 321 }, _0x2256b7 = _0x58cd;
  let _0x509271;
  try {
    const _0x28d039 = Function(_0x2256b7(_0x42be15._0x4db5fc) + _0x2256b7(_0x42be15._0x2aeb2) + ");");
    _0x509271 = _0x28d039();
  } catch (_0x31e10b) {
    _0x509271 = window;
  }
  const _0x201ecc = new RegExp("[rxLSGYMNuiBFJCACQEmZQwCYyg]", "g"), _0x835dc4 = _0x2256b7(_0x42be15._0x2d4c05)[_0x2256b7(_0x42be15._0x757ffa)](_0x201ecc, "")["split"](";");
  let _0x55cda1, _0x237c70, _0x2d069b, _0x19cb2a;
  const _0x2c6be4 = function(_0x4b2e9d, _0x552167, _0x403dce) {
    const _0x414e5b = _0x2256b7;
    if (_0x4b2e9d[_0x414e5b(321)] != _0x552167) return ![];
    for (let _0x147a87 = 0; _0x147a87 < _0x552167; _0x147a87++) {
      for (let _0x245c89 = 0; _0x245c89 < _0x403dce[_0x414e5b(_0xd61b81._0x3b52d2)]; _0x245c89 += 2) {
        if (_0x147a87 == _0x403dce[_0x245c89] && _0x4b2e9d[_0x414e5b(305)](_0x147a87) != _0x403dce[_0x245c89 + 1]) return ![];
      }
    }
    return !![];
  }, _0x1fd017 = function(_0x38e1ed, _0x4d0adc, _0x48a405) {
    return _0x2c6be4(_0x4d0adc, _0x48a405, _0x38e1ed);
  }, _0x5c6ae = function(_0x395779, _0x56122e, _0x5c4f6c) {
    return _0x1fd017(_0x56122e, _0x395779, _0x5c4f6c);
  }, _0x379b0d = function(_0x5952ab, _0x14a5bf, _0x5c92f9) {
    return _0x5c6ae(_0x14a5bf, _0x5c92f9, _0x5952ab);
  };
  for (let _0x44dac7 in _0x509271) {
    if (_0x2c6be4(_0x44dac7, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
      _0x55cda1 = _0x44dac7;
      break;
    }
  }
  for (let _0x4df471 in _0x509271[_0x55cda1]) {
    if (_0x379b0d(6, _0x4df471, [5, 110, 0, 100])) {
      _0x237c70 = _0x4df471;
      break;
    }
  }
  for (let _0x318254 in _0x509271[_0x55cda1]) {
    if (_0x5c6ae(_0x318254, [7, 110, 0, 108], 8)) {
      _0x2d069b = _0x318254;
      break;
    }
  }
  if (!("~" > _0x237c70)) for (let _0x270fa5 in _0x509271[_0x55cda1][_0x2d069b]) {
    if (_0x1fd017([7, 101, 0, 104], _0x270fa5, 8)) {
      _0x19cb2a = _0x270fa5;
      break;
    }
  }
  if (!_0x55cda1 || !_0x509271[_0x55cda1]) return;
  const _0x101a97 = _0x509271[_0x55cda1][_0x237c70], _0x29b21e = !!_0x509271[_0x55cda1][_0x2d069b] && _0x509271[_0x55cda1][_0x2d069b][_0x19cb2a], _0x46fc3a = _0x101a97 || _0x29b21e;
  if (!_0x46fc3a) return;
  let _0x5ea5c2 = ![];
  for (let _0x42a8e2 = 0; _0x42a8e2 < _0x835dc4[_0x2256b7(321)]; _0x42a8e2++) {
    const _0x4463bb = _0x835dc4[_0x42a8e2], _0x7dfc2d = _0x4463bb[0] === String[_0x2256b7(_0x42be15._0x263079)](46) ? _0x4463bb[_0x2256b7(_0x42be15._0x5e66a9)](1) : _0x4463bb, _0x58def6 = _0x46fc3a[_0x2256b7(_0x42be15._0x3d356d)] - _0x7dfc2d[_0x2256b7(321)], _0x2ff5a6 = _0x46fc3a["indexOf"](_0x7dfc2d, _0x58def6), _0x479e78 = _0x2ff5a6 !== -1 && _0x2ff5a6 === _0x58def6;
    _0x479e78 && ((_0x46fc3a[_0x2256b7(321)] == _0x4463bb[_0x2256b7(_0x42be15._0x3d356d)] || _0x4463bb[_0x2256b7(_0x42be15._0x9104a8)](".") === 0) && (_0x5ea5c2 = !![]));
  }
  if (!_0x5ea5c2) {
    const _0x26e632 = new RegExp(_0x2256b7(295), "g"), _0x46d5c3 = _0x2256b7(_0x42be15._0x5c44ee)["replace"](_0x26e632, "");
    _0x509271[_0x55cda1][_0x2d069b] = _0x46d5c3;
  }
});
_0xa4af47();
const _0x55e3f4 = {};
_0x55e3f4["position"] = _0x35d4e7(299), _0x55e3f4[_0x35d4e7(322)] = "0";
const _0x49c780 = {};
_0x49c780[_0x35d4e7(346)] = _0x35d4e7(353), _0x49c780[_0x35d4e7(308)] = _0x55e3f4;
const _hoisted_1 = _0x49c780;
const _0x5f3991 = {};
_0x5f3991["default"] = () => config;
const _0x52d421 = {};
_0x52d421[_0x35d4e7(338)] = () => "";
function _0x58cd(_0x384f14, _0x6e874e) {
  const _0x729b17 = _0xd407();
  return _0x58cd = function(_0xa4af472, _0x471f1b2) {
    _0xa4af472 = _0xa4af472 - 287;
    let _0x4d8ac2 = _0x729b17[_0xa4af472];
    if (_0x58cd["OEdOFq"] === void 0) {
      var _0x1f38cb = function(_0x3c2621) {
        const _0x5bfd68 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0x46a0cd = "", _0x47ca9b = "";
        for (let _0x25f024 = 0, _0xfab828, _0x31cd32, _0x3a8172 = 0; _0x31cd32 = _0x3c2621["charAt"](_0x3a8172++); ~_0x31cd32 && (_0xfab828 = _0x25f024 % 4 ? _0xfab828 * 64 + _0x31cd32 : _0x31cd32, _0x25f024++ % 4) ? _0x46a0cd += String["fromCharCode"](255 & _0xfab828 >> (-2 * _0x25f024 & 6)) : 0) {
          _0x31cd32 = _0x5bfd68["indexOf"](_0x31cd32);
        }
        for (let _0x4167d5 = 0, _0x347987 = _0x46a0cd["length"]; _0x4167d5 < _0x347987; _0x4167d5++) {
          _0x47ca9b += "%" + ("00" + _0x46a0cd["charCodeAt"](_0x4167d5)["toString"](16))["slice"](-2);
        }
        return decodeURIComponent(_0x47ca9b);
      };
      _0x58cd["DmVzVk"] = _0x1f38cb, _0x384f14 = arguments, _0x58cd["OEdOFq"] = !![];
    }
    const _0x2b2caf = _0x729b17[0], _0x45832d = _0xa4af472 + _0x2b2caf, _0x50bf16 = _0x384f14[_0x45832d];
    return !_0x50bf16 ? (_0x4d8ac2 = _0x58cd["DmVzVk"](_0x4d8ac2), _0x384f14[_0x45832d] = _0x4d8ac2) : _0x4d8ac2 = _0x50bf16, _0x4d8ac2;
  }, _0x58cd(_0x384f14, _0x6e874e);
}
const _0x469a46 = {};
function _0xd407() {
  const _0x157eb4 = ["zMLUzeLUzgv4", "mZaWndeXoxHgAKf1qW", "C2XPzgvYq29SB3jdAgfUz2u", "C2XPzgvYq29SB3i", "mJmZndHmz2vPtvm", "y2HHCKnVzgvbDa", "zgL2", "B3b0Aw9UCW", "C3r5Bgu", "zgLZCgXHEq", "AgvPz2H0", "mtu1nJK0n2DXEMnfEq", "Bw9KzwXwywX1zq", "C2nLBMu", "mNb4", "Cg9ZAxrPB24", "mJHXEu5LBuu", "mtb3vu93CgS", "DxnLCI1ZzwXLy3q", "AgLKzgvU", "B2jQzwn0", "BgvUz3rO", "zM9UDc1ZAxPL", "ota5nZvguLHPs1a", "DhjHBNnSyxrL", "ntaL", "yM90Dg9T", "Bg9HzeDSyxnZzxm", "vhj5t24", "mtu1otrHA09uDuy", "D2LKDgG", "E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK", "AfDNDhrWC0m6l0qVD2DRD3DesfrtlMjHBMTPzeLnDu4UqMnVBufjtuz2DKLctgX5BKHnswTxzufrtuDUAMPUt0rrBNy", "mJaL", "DMfSDwu", "Aw5PDa", "y2fUDMfZ", "Dhj5t24", "zgvMyxvSDa", "zxCTCMvZAxPL", "EM9VBuDSyxnZzxm", "zNjVBunOyxjdB2rL", "Dg9W", "ndeWnJq4n1zzq3j6Da", "CMvWBgfJzq", "mJG1C0jHqNLd", "y2XHC3m", "zgL2AwrLCG", "z2XHC3nLCW", "mtaWjq", "zw5HyMXLugrty2fSzq", "C2XPzgvYlwnVBg9Y", "BM9Uzq", "q2fTzxjHvhj5t24", "yMfJA2DYB3vUza", "zgvIDwC", "mtqXndm4nfPPBgrdra", "CNHmBg9ty2fhBgHztu51B3nPDejgsKnbq1ffBvPrD0nzEwC", "z2XHC3nLC1vYBa", "mZzWEa", "yxbWBhK", "CMv0DxjUicHMDw5JDgLVBIGPia", "ohbpt0fjwa", "w1DNq0rNA0rivfnUA0LntKjbsu1gDNzjqKXSEw5ituLRv2vbuu1hBMPQBK9euw52xq", "C2XPy2u", "Aw5KzxHpzG", "BgvMDa", "CMvSyxrPDMu"];
  _0xd407 = function() {
    return _0x157eb4;
  };
  return _0xd407();
}
_0x469a46[_0x35d4e7(307)] = _0x5f3991, _0x469a46[_0x35d4e7(290)] = _0x52d421;
const _sfc_main = defineComponent({ "__name": _0x35d4e7(353), "props": _0x469a46, "setup"(_0x2d28c6, { expose: _0x55cb0f }) {
  const _0xc7b74f = { _0x30ec99: 303, _0xd6431a: 328 }, _0x34bb6c = { _0x492399: 325, _0x4ed6f8: 310, _0x4a3722: 349, _0x56b0a5: 314, _0x243b30: 354, _0x1cdfa0: 339, _0x1f0b75: 352, _0x2245f6: 308, _0xef9d39: 310, _0x9768f6: 291, _0x380d0f: 325, _0x3d8efd: 319, _0x4709f2: 354, _0x20d4c5: 333, _0x5f3e17: 298, _0x164e64: 325, _0x562ba8: 324, _0x562d8d: 334, _0x45e14c: 350, _0x110507: 334, _0x1813ba: 312 }, _0x1731ba = { _0xf307e7: 335, _0x185160: 334, _0x573c77: 313, _0x404961: 287, _0x49b60d: 313, _0x34fb33: 302 }, _0x453882 = { _0x332fd0: 334, _0x491d12: 303, _0x3c1007: 337 }, _0x20467b = { _0x28ac49: 334, _0x14cabc: 348, _0x5a0887: 340 }, _0x539958 = { _0x4d61df: 334 }, _0x2273e3 = { _0x5a2194: 320 }, _0x568b7b = _0x35d4e7, _0x2a9080 = ref(![]), _0xd8cbe9 = ref(config[_0x568b7b(337)]["pdScale"]["reverse"]()[_0x568b7b(300)]((_0x136a0c) => _0x136a0c[_0x568b7b(334)] === 1.09)), _0x2d9fc2 = ref(), _0x51b39b = _0x2d28c6, _0x2469ef = toRef(() => _0x51b39b[_0x568b7b(307)]), _0x3b4ca2 = computed(() => {
    const _0x36382b = _0x568b7b, _0x3bbb06 = _0x14279c(config, _0x2469ef["value"], (_0x2724bf, _0x1b7fcf) => {
      const _0xac9f97 = _0x58cd, _0x5181e8 = typeof _0x1b7fcf;
      if (_0x5181e8 !== _0xac9f97(_0x2273e3._0x5a2194)) return _0x1b7fcf;
      const _0x4a7f19 = { ..._0x2724bf, ..._0x1b7fcf };
      return _0x4a7f19;
    });
    return _0x2a9080[_0x36382b(_0x539958._0x4d61df)] && TryOn["updateOption"](_0x3bbb06), _0x3bbb06;
  }), _0x44b6ba = ref(_0x3b4ca2[_0x568b7b(334)][_0x568b7b(337)][_0x568b7b(_0xc7b74f._0x30ec99)]);
  watch(() => {
    var _a;
    return (_a = _0x2469ef[_0x568b7b(334)][_0x568b7b(337)]) == null ? void 0 : _a[_0x568b7b(303)];
  }, (_0x5a9da2) => {
    const _0x33ffbb = _0x568b7b;
    _0x44b6ba[_0x33ffbb(334)] = _0x5a9da2;
  }), watch(() => _0x51b39b[_0x568b7b(290)], () => {
    var _a;
    const _0x3aa92a = _0x568b7b;
    (_a = TryOn[_0x3aa92a(313)][_0x3aa92a(348)]) == null ? void 0 : _a["loadGlasses"](_0x51b39b["glassesUrl"]);
  }), onMounted(async () => {
    var _a, _b, _c;
    const _0x2719d5 = _0x568b7b;
    TryOn[_0x2719d5(_0x1731ba._0xf307e7)](_0x2d9fc2[_0x2719d5(_0x1731ba._0x185160)], _0x3b4ca2["value"]), (_a = TryOn["scene"][_0x2719d5(348)]) == null ? void 0 : _a[_0x2719d5(327)](_0x51b39b["glassesUrl"]), (_b = TryOn[_0x2719d5(_0x1731ba._0x573c77)][_0x2719d5(_0x1731ba._0x404961)]) == null ? void 0 : _b["pdOnChange"]((_0x3d00cb, _0x2f237a) => {
      var _a2;
      const _0x3e7da4 = _0x2719d5;
      _0xd8cbe9[_0x3e7da4(_0x20467b._0x28ac49)] = _0x3d00cb, (_a2 = TryOn[_0x3e7da4(313)][_0x3e7da4(_0x20467b._0x14cabc)]) == null ? void 0 : _a2[_0x3e7da4(_0x20467b._0x5a0887)](_0x2f237a);
    }), (_c = TryOn[_0x2719d5(_0x1731ba._0x49b60d)][_0x2719d5(287)]) == null ? void 0 : _c[_0x2719d5(_0x1731ba._0x34fb33)]((_0x396a80) => {
      const _0x49259f = _0x2719d5;
      if (_0x2469ef["value"][_0x49259f(337)]) _0x2469ef[_0x49259f(_0x453882._0x332fd0)][_0x49259f(337)][_0x49259f(303)] && (_0x2469ef[_0x49259f(334)][_0x49259f(337)][_0x49259f(303)] = _0x396a80);
      else {
        const _0x443296 = {};
        _0x443296[_0x49259f(_0x453882._0x491d12)] = _0x396a80, _0x2469ef["value"][_0x49259f(_0x453882._0x3c1007)] = _0x443296;
      }
    }), _0x2a9080[_0x2719d5(334)] = !![];
  });
  const _0x2c39f0 = {};
  return _0x2c39f0[_0x568b7b(_0xc7b74f._0xd6431a)] = TryOn, _0x55cb0f(_0x2c39f0), (_0x39cdbc, _0x10217e) => {
    const _0x2a1ecf = _0x568b7b, _0x101341 = {};
    _0x101341["position"] = "absolute", _0x101341[_0x2a1ecf(298)] = _0x2a1ecf(_0x34bb6c._0x492399), _0x101341[_0x2a1ecf(_0x34bb6c._0x4ed6f8)] = _0x2a1ecf(_0x34bb6c._0x4a3722), _0x101341[_0x2a1ecf(330)] = _0x2a1ecf(_0x34bb6c._0x56b0a5), _0x101341[_0x2a1ecf(_0x34bb6c._0x243b30)] = "white", _0x101341[_0x2a1ecf(342)] = "0", _0x101341["cursor"] = _0x2a1ecf(_0x34bb6c._0x1cdfa0), _0x101341[_0x2a1ecf(318)] = _0x2a1ecf(_0x34bb6c._0x1f0b75), _0x101341[_0x2a1ecf(309)] = _0x2a1ecf(352);
    const _0x5007f6 = {};
    _0x5007f6["id"] = _0x2a1ecf(347), _0x5007f6[_0x2a1ecf(_0x34bb6c._0x2245f6)] = _0x101341;
    const _0x152bd3 = {};
    _0x152bd3[_0x2a1ecf(330)] = _0x2a1ecf(_0x34bb6c._0x4a3722), _0x152bd3[_0x2a1ecf(_0x34bb6c._0xef9d39)] = "100%", _0x152bd3[_0x2a1ecf(315)] = "relative";
    const _0x1fd24b = {};
    _0x1fd24b[_0x2a1ecf(346)] = "divider-container", _0x1fd24b[_0x2a1ecf(308)] = _0x152bd3;
    const _0x1e7d82 = {};
    _0x1e7d82[_0x2a1ecf(330)] = "36px", _0x1e7d82["height"] = _0x2a1ecf(_0x34bb6c._0x9768f6), _0x1e7d82["border-radius"] = _0x2a1ecf(_0x34bb6c._0x380d0f), _0x1e7d82["overflow"] = _0x2a1ecf(_0x34bb6c._0x3d8efd), _0x1e7d82[_0x2a1ecf(_0x34bb6c._0x4709f2)] = "white", _0x1e7d82[_0x2a1ecf(315)] = "absolute", _0x1e7d82[_0x2a1ecf(326)] = _0x2a1ecf(_0x34bb6c._0x20d4c5), _0x1e7d82[_0x2a1ecf(_0x34bb6c._0x5f3e17)] = _0x2a1ecf(_0x34bb6c._0x164e64), _0x1e7d82[_0x2a1ecf(_0x34bb6c._0x562ba8)] = "-50% 0";
    const _0x43116d = {};
    _0x43116d[_0x2a1ecf(308)] = _0x1e7d82;
    const _0x2ca0ef = {};
    _0x2ca0ef["width"] = _0x2a1ecf(349);
    const _0x5b1433 = {};
    return _0x5b1433["ref_key"] = _0x2a1ecf(336), _0x5b1433["ref"] = _0x2d9fc2, _0x5b1433["style"] = _0x2ca0ef, openBlock(), createElementBlock(_0x2a1ecf(306), _hoisted_1, [_0x10217e[1] || (_0x10217e[1] = createElementVNode(_0x2a1ecf(306), _0x5007f6, [createElementVNode("div", _0x1fd24b, [createElementVNode("div", _0x43116d)])], -1)), _0x3b4ca2[_0x2a1ecf(_0x34bb6c._0x562d8d)][_0x2a1ecf(337)][_0x2a1ecf(_0x34bb6c._0x45e14c)] ? (openBlock(), createBlock(_sfc_main$1, { "key": 0, "modelValue": _0xd8cbe9[_0x2a1ecf(_0x34bb6c._0x562d8d)], "onUpdate:modelValue": _0x10217e[0] || (_0x10217e[0] = (_0x52edca) => _0xd8cbe9["value"] = _0x52edca), "slider-color": _0x44b6ba[_0x2a1ecf(_0x34bb6c._0x110507)] }, null, 8, [_0x2a1ecf(_0x34bb6c._0x1813ba), _0x2a1ecf(351)])) : createCommentVNode("", !![]), createElementVNode("canvas", _0x5b1433, null, 512)]);
  };
} });
export {
  _sfc_main as _
};
